package com.service.impl;

import com.mapper.UserMapper;
import com.pojo.User;
import com.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author xu
 * @Description
 * @Date 2022.2.24
 */
@Service("RegisterService")
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void register(User user) {
        userMapper.addUser(user);
    }
}
